

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>小红帽科技|草帽聚合支付 - 后台管理 - 支付渠道新增</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="__ADMIN__/layui/css/layui.css" media="all">
</head>
<body>

<div class="layui-form" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">渠道名称：</label>
        <div class="layui-input-block">
            <input type="text" name="name" required lay-verify="required" placeholder="请输入渠道名称" autocomplete="off" class="layui-input" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">操作控制：</label>
        <div class="layui-input-block">
            <input type="text" name="action" required lay-verify="required" placeholder="请输入操作控制器" autocomplete="off" class="layui-input" value="">
            <div class="layui-form-mid layui-word-aux">注：执行相关控制器类名称</div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">回调地址：</label>
        <div class="layui-input-block">
            <input type="text" name="return_url" required lay-verify="required" placeholder="请输入回调地址" autocomplete="off" class="layui-input" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">异步地址：</label>
        <div class="layui-input-block">
            <input type="text" name="notify_url" required lay-verify="required" placeholder="请输入异步地址" autocomplete="off" class="layui-input" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">代理分成：</label>
        <div class="layui-input-inline">
            <input type="text" name="urate" required lay-verify="required" placeholder="请输入代理分成" autocomplete="off" class="layui-input" value="">
        </div>
        <label class="layui-form-label">用户分成：</label>
        <div class="layui-input-inline">
            <input type="text" name="urate" required lay-verify="required" placeholder="请输入用户分成" autocomplete="off" class="layui-input" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开始时间：</label>
        <div class="layui-input-inline">
            <input type="text" name="timeslot[start]" id="channel-timeslot-start" lay-verify="time" value="" placeholder="H:m" autocomplete="off" class="layui-input" lay-key="start">
        </div>
        <label class="layui-form-label">结束时间：</label>
        <div class="layui-input-inline">
            <input type="text" name="timeslot[end]" id="channel-timeslot-end" lay-verify="time" value="" placeholder="H:m" autocomplete="off" class="layui-input" lay-key="end">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态：</label>
        <div class="layui-input-block">
            <input type="radio" name="status" checked value="1" title="启用">
            <input type="radio" name="status" value="0" title="禁用">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">备注：</label>
        <div class="layui-input-block">
            <textarea name="remarks" placeholder="请输入备注" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="app-pay-channel-submit" id="app-pay-channel-submit" value="确认">
    </div>
</div>

<script src="__ADMIN__/layui/layui.js"></script>
<script>
    layui.config({
        base: '__ADMIN__/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','laydate', 'form'], function(){
        var $ = layui.$
            ,laydate = layui.laydate
            ,form = layui.form;

        //时间选择器
        laydate.render({
            elem: '#channel-timeslot-start'
            ,type: 'time'
            ,format: 'H:m'
        });
        laydate.render({
            elem: '#channel-timeslot-end'
            ,type: 'time'
            ,format: 'H:m'
        });

    })
</script>
</body>
</html>